#include "MarsPrecompile.h"

#include "MarsRasterizerState.h"
#include "MarsRenderer.h"

using namespace Graphics;

bool RasterizerState::Create()
{
	HRESULT hr = Renderer::Instance().GetDevice()->CreateRasterizerState( 
		&m_rasterizerDesc,
		&m_pRasterizerState );

	if ( FAILED( hr ) )
	{
		return false;
	}

	return true;
}

void RasterizerState::Delete()
{
	SAFE_RELEASE( m_pRasterizerState );
}
